package ord2.webservice;

import ord2.core.AbstractFactory;

/**
 * This class is used to store all webservices that can be used by the system.
 * Each webservice has a name that represents it.
 *
 * @author José Ivan
 * @author Edviges
 *
 */
public final class WebServiceFactory extends AbstractFactory<String, WebService> {
    
    private static WebServiceFactory instance = null;
    
    private WebServiceFactory() {
        
        super();
    }
    
    /**
     * Gets a instance of this converter to be used.
     * @return A instance of this factory
     */
    public static WebServiceFactory getInstance() {
        
        if (instance == null) {
            
            instance = new WebServiceFactory();
        }
        
        return instance;
    }
}
